package net.modul.dept.service;

import java.util.List;

import com.beyond.exception.XException;

import net.common.service.GeneralService;
import net.modul.dept.dao.EmployeeDao;
import net.modul.dept.dao.impl.EmployeeDaoImpl;
import net.modul.dept.vo.EmployeeVo;

/**
 * 员工查询业务处理
 * 
 * @author Administrator
 *
 */
public class EmployeeSearchService extends GeneralService {

	private List<EmployeeVo> list;
	
	private EmployeeVo bean;
	
	@Override
	public void execute() throws XException {
		EmployeeDao dao = new EmployeeDaoImpl();
		try{
		list = dao.search(pageBean, bean);
		}catch(Exception e){
			throw new XException(e);
		}
	}

	public List<EmployeeVo> getList() {
		return list;
	}

	public void setBean(EmployeeVo bean) {
		this.bean = bean;
	}

}
